package com.travel.server.manager.dto.response.order;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author: LiZhenhui
 * @Date: 2018/11/5 12:43
 * @Desc:
 */
@Data
public class QueryOrderListResponse {

    @JSONField(name = "total_num")
    private Integer totalNum = 0;

    @JSONField(name = "order_list")
    private List<OrderItem> orderList = new ArrayList<>();

    @Data
    public static class OrderItem{

        private Integer id;

        @JSONField(name = "order_id")
        private String orderId;

        @JSONField(name = "team_number")
        private String teamNumber;

        @JSONField(name = "out_order_id")
        private String outOrderId;

        @JSONField(name = "pay_id")
        private String payId;

        @JSONField(name = "pay_type")
        private String payType;

        @JSONField(name = "order_type")
        private String orderType;

        private String buyer;

        @JSONField(name = "project_pic_url")
        private String projectPicUrl;

        @JSONField(name = "commodity_name")
        private String commodityName;

        @JSONField(name = "travel_date")
        private String travelDate;

        @JSONField(name = "order_amount")
        private String orderAmount;

        @JSONField(name = "order_total")
        private String orderTotal;

        @JSONField(name = "order_time", format = "yyyy-MM-dd HH:mm:ss")
        private Date orderTime;

        @JSONField(name = "order_charge_name")
        private String orderChargeName;

        @JSONField(name = "need_english")
        private Integer needEnglish;

        private String step;

        @JSONField(name = "is_travel_data")
        private Integer isTravelData;

        @JSONField(name = "pay_amount")
        private String payAmount;

        @JSONField(name = "order_stars")
        private String orderStars;

        private String note;
    }
}
